define([
	'jquery',
	'underscore',
	'backbone'
], function($, _, Backbone){
	
	var EntryView = Backbone.View.extend({
		tagName: 'li',
		
		el: $('#main_container'),
		
		entryTpl: _.template( $('#entry_template').html() ),
		
		events: {
			'dblclick label': 'edit'
		},
		
		initialize: function() {
			console.log("initializing entry view...");
		},
		
		render: function() {
			this.$el.html( this.entryTpl( this.model.toJSON() ) );
			console.log("rendering entry view...");
			return this;
		},
		
		edit: function() {
			console.log("editing entry...");
		}
	});
	
	return EntryView;
});